package com.tearreview.pojo;

public class User {
    private  Integer UserId;  //一定要Integer 否则接受前端值就会是null
    private String  username;
    private  String  password;
    private  String  email;

    public User(Integer userId, String username, String password, String email) {
        UserId = userId;
        this.username = username;
        this.password = password;
        this.email = email;
    }

    public int getUserId() {
        return UserId;
    }


    //Set方法也必须是整数型 否则无法设置前端传来的值
    public void setUserId(Integer userId) {
        UserId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
